<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="security" uri="http://www.springframework.org/security/tags" %>

	<!-- This code written by : Willie Wheeler and John Wheeler -->
	<!-- For 'Spring In Practice' [Book written by Willie Wheeler and John Wheeler] -->

<c:url var="stylesUrl" value="/styles.css"/>

<html>
	<head>
		<title>Account Settings</title>
		<link rel="stylesheet" type="text/css" href="${stylesUrl}">
	</head>
	<body>
		<jsp:include page="header.jsp"/>
		
		<h1>Account Settings</h1>
		
		<p>
			<security:authentication property="name"/> -
			<security:authorize ifAnyGranted="ROLE_JUNIOR_MEMBER">
				Junior member
			</security:authorize>
			<security:authorize ifAnyGranted="ROLE_MEMBER">
				Member
			</security:authorize>
			<security:authorize ifAnyGranted="ROLE_SENIOR_MEMBER">
				Senior member
			</security:authorize>
			<security:authorize ifAnyGranted="ROLE_ADMIN">
				Administrator
			</security:authorize>
		</p>
		
		<p>${testText}</p>
	</body>
</html>
